import { Button } from "antd";
import Image from "next/image";
import Link from "next/link";
import styles from './page.module.css';
import {useTranslations} from 'next-intl';

export default function Home() {
  const t = useTranslations('index');
  return (
    <main className={styles.home}>
        <div className={styles.content}>
          <p>
            {t('desc')}
          </p>

          <h2>{t('log.title')}</h2>

          <div>
            <Link href="/dashboard" style={{marginRight: 20}}><Button type="primary">{t('try')}</Button></Link>
          </div>
        </div>
    </main>
  );
}
